-- GENERATED SPELL FOR [Mad Jonah Sterling] --


function spell0_24742(pUnit, Event) --@Wildly Flailing,n/a--
pUnit:FullCastSpellOnTarget(50188,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24742', 5000, 1)
end

function Sorts_24742(pUnit, Event)
local choix_sorts_24742 = math.random(0, 0)
if choix_sorts_24742 == 0 then
pUnit:RegisterEvent('spell0_24742', 1, 1)
end
end

function mob24742_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24742', math.random(1500, 3000), 1)
end

function mob24742_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24742_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24742_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24742, 1, 'mob24742_Action')
RegisterUnitEvent(24742, 2, 'mob24742_Leave')
RegisterUnitEvent(24742, 3, 'mob24742_Kill')
RegisterUnitEvent(24742, 4, 'mob24742_Die')
